﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
   public class Payment
    {
        #region Properties
        public Guid ID { get; set; }
        public decimal Amount { get; set; }
        public string ReferenceDetails { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Guid MoneyID { get; set; }
        public int PaymentTypeID { get; set; }
        public int PaymentStatusID { get; set; } 
        #endregion

        #region NavigationalProperties
        [ForeignKey("MoneyID")]
        public virtual Money Money { get; set; }
        [ForeignKey("PaymentTypeID")]
        public virtual PaymentType PaymentType { get; set; }
        [ForeignKey("PaymentStatusID")]
        public virtual PaymentStatus Status { get; set; }

        public virtual ICollection<AccountsVoucher> Vouchers { get; set; }
        #endregion

    }
}
